package Code.Day5_20240922.com.dx.day05;

import lombok.Getter;
import lombok.Setter;

/**
 * @ClassName Cat
 * @Description 宠物-小猫
 * @Author 12994
 * @Date 2024/9/22 15:55
 * @Version 1.0
 **/
@Getter
@Setter
public class Cats extends Pets {
    private int jianKangZhi;

    public Cats(String name, String colors, int age, int jianKangZhi) {
        super(name, colors, age);
        this.jianKangZhi = jianKangZhi;
    }

    @Override
    public String toString() {
        return super.toString() + ", 健康值是: " + this.jianKangZhi + ".";
    }
}
